package bufferedstream;

import java.io.*;

public class demo1 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("csb.txt"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("result.txt"));
        int ch;
        while ((ch = bis.read()) != -1){
            bos.write(ch);
        }
        bos.close();
        bis.close();
    }
}
